﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MentalAlchemy.Compounds
{
	public partial class FloatInputForm : Form
	{
		/// <summary>
		/// Text, which is shown next to the numeric input control.
		/// </summary>
		public string LabelText
		{
			get { return label1.Text; }
			set { label1.Text = value; }
		}

		/// <summary>
		/// Numeric field's value.
		/// </summary>
		public decimal NumericValue
		{
			get { return NumericControl.Value; }
		}

		/// <summary>
		/// Control for numeric values.
		/// </summary>
		public NumericUpDown NumericCntrl { get { return NumericControl; } }

		public FloatInputForm()
		{
			InitializeComponent();
		}

		private void OkBtn_Click(object sender, EventArgs e)
		{
			DialogResult = DialogResult.OK;
			Hide();
		}	}
}
